var serverPath = "http://localhost:8888";

 $.ajaxSetup({
  	xhrFields: {
  		withCredentials: true
  	}
  });